<?php
defined("IN_SITE") or exit ("Access Denied");
//if(!strpos(strtoupper($_SERVER['HTTP_USER_AGENT']),'MSIE')) showmessage('对不起，目前采集程序只能支持IE浏览器，请换用IE浏览器浏览！')

$module = "spider";
$modulename = "采集";
$introduce = "批量采集并格式化文章";
$enablecopy = "0";
$isshare = "0";
$author = "PHPCMS开发团队";
$authorsite = "http://www.phpcms.cn";
$authoremail = "phpcms@ku6.com";
$spiderInstallUrl = "http://www.phpcms.cn";
//$charset_config = array('self'=>'gbk','target'=>'utf8');//GBK配置
$charset_config = array('self'=>'utf8','target'=>'gbk');

// 调试输出信息
$M['Debug'] = 1;

// 网址防重复采集
$M['CacheUrlTag'] = 1;

// 标题防重复发布
$M['CacheTitleTag'] = 1;

// 标题最大长度限制,字符数
$M['titleLength'] = 80;

// 从内容的前N个字符提取关键词,一个汉字字符长度为2
$M['keywordContentLenght'] = 200;

// 单篇文章提取关键词数,要小于发布模型中关键词数限制
$M['keywordNumber'] = 3;

// 提取关键词最小长度,一个汉字字符长度为2
$M['keywordStrLength'] = 3;

// 提取关键词最大长度,一个汉字字符长度为2
$M['keywordStrMaxLength'] = 3;

// 提取关键词时屏蔽字符串, 多个字符串以|间隔
$M['keywordFilter'] = "操|草|叼|屌|日";

// 自动提取摘要长度
$M['descriptionLength'] = 200;


//defined("IN_SITE") or exit ("Access Denied");
define('TABLE_SPIDER_SITES',DB_PRE.'spider_sites');
define('TABLE_SPIDER_JOB',DB_PRE.'spider_job');
define('TABLE_SPIDER_URLS',DB_PRE.'spider_urls');
define('TABLE_SPIDER_OUT',DB_PRE.'spider_out');
//define('MOD_ROOT', WWW_ROOT.'/'.$module);
define('SPIDERDIR', MOD_ROOT.'spider/');


//error_reporting(E_ALL);
include_once 'includes/charset.func.php';
require_once 'includes/functions.func.php'; 
require 'spider.lang.php'; 
require 'spider_admin.lang.php'; 

if($file!='setting')
{
	checkModConfig();
}

?>